using UnityEngine;
using UnityEngine.UI;
using Voodoo.Pattern;

public class GemsCounter : SingletonMB<GemsCounter>
{
	[SerializeField]
	private Text text;

	private void Start()
	{
		base.gameObject.SetActive(Preloader.WallGemsConfig.IsEnabled && (Preloader.WallGemsConfig.GemsValueMultiplier == 0f || Preloader.CityBuilderConfig.IsEnabled));
		UpdateValue();
	}

	public void UpdateValue()
	{
		text.SetNumberText(NintendoPlayerPrefs.GetInt("Gems", 0));
	}
}
